package com.ysu.demo.utlis;

import com.ysu.demo.VO.ResultVO;

/**
 * @author ：lhw
 * @date ：Created in 2019/8/9 10:12
 */
public class ResultUtil {
    public static ResultVO TrueResult(){
        return new ResultVO(0,"成功",null);
    }

    public static ResultVO TrueResult(Object object){
        return new ResultVO(0,"成功",object);
    }

    public static ResultVO ErrorResult(Integer code,String msg){
        return new ResultVO(code,msg,null);
    }
}
